@class-prefix-input: ~'bbt-textarea';

.@{class-prefix-input} {
    --font-size: 17px;
    --color: #333333;
    --placeholder-color: #cccccc;
    --disabled-color: #999999;
    --text-align: left;
    --count-text-align: right;
  
    width: 100%;
    max-width: 100%;
    max-height: 100%;
  }
  
  .@{class-prefix-input}-element {
    font-family:  -apple-system, blinkmacsystemfont, 'Helvetica Neue',
    helvetica, segoe ui, arial, roboto, 'PingFang SC', 'miui',
    'Hiragino Sans GB', 'Microsoft Yahei', sans-serif;
    resize: none;
    flex: auto;
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    padding: 0;
    margin: 0;
    color: var(--color);
    font-size: var(--font-size);
    line-height: 1.5;
    background: transparent;
    border: 0;
    outline: none;
    appearance: none;
    min-height: 1.5em;
    text-align: var(--text-align);
  
    &::placeholder {
      color: var(--placeholder-color);
      font-family: inherit;
    }
  
    &:-webkit-autofill {
      background-color: transparent;
    }
  
    &:disabled {
      color: var(--disabled-color);
      cursor: not-allowed;
      opacity: 1;
      -webkit-text-fill-color: var(--disabled-color);
    }
  
    &:read-only {
      cursor: default;
    }
  
    &:invalid {
      box-shadow: none;
    }
  
    &::-ms-clear {
      display: none;
    }
  
    &[readonly] {
      pointer-events: none;
    }
  }
  
  .@{class-prefix-input}-count {
    text-align: var(--count-text-align);
    color: #999999;
    font-size: 17px;
    padding-top: 8px;
  }
  